require File.expand_path('../bible_lib', __FILE__)

if __FILE__ == $0
  # TODO Generated stub
  start_time = Time.now
  begin
    text_file = File.expand_path('../bbe.txt', __FILE__)
    puts text_file
    handle = open(text_file, 'r')
    i = 0
    while !handle.eof? do
      Bible.process_line(i+=1, handle.readline)
      #puts handle.readline
    end
  rescue Exception => e
    puts e.message, e.backtrace
  else
    handle.close
  end
  end_time = Time.now
  puts end_time - start_time
end